use TNG

Declare @Inicio as DateTime
Declare @Termino as DateTime

set @Inicio = '2007-06-01'
set @Termino = '2007-06-30'

exec TNG_GERA_BASE_CONTROLADORIA @Inicio,@Termino
exec dbo.TNG_GERA_BASE_CONTROLADORIA_FILIAL  @Inicio,@Termino